Add an #ifdef to shut gtk-doc up
authorMatthias Clasen <mclasen@redhat.com>
Fri, 24 Jan 2014 02:08:34 +0000 (21:08 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 24 Jan 2014 02:09:24 +0000 (21:09 -0500)
gtk-doc complains that the stock macros are deprecated,
but not in an #ifdef block. So add one.

gtk/deprecated/gtkstock.h

index b244efff83233ecc83b49681a25b776c257d8dfc..c911f4188aeef2c0451ef104e96d9b1a74eedaca 100644 (file)
@@ -106,6 +106,8 @@ G_DEPRECATED
 #endif
 typedef char * GtkStock;
 
+#ifndef GTK_DISABLE_DEPRECATED
+
 /* Stock IDs (not all are stock items; some are images only) */
 /**
  * GTK_STOCK_ABOUT:
@@ -1261,6 +1263,8 @@ typedef char * GtkStock;
  */
 #define GTK_STOCK_ZOOM_OUT         ((GtkStock)"gtk-zoom-out")
 
+#endif
+
 G_END_DECLS
 
 #endif /* __GTK_STOCK_H__ */